package com.daipresents.logging.logback;

import org.slf4j.LoggerFactory;

import ch.qos.logback.classic.Logger;
import ch.qos.logback.classic.LoggerContext;


public class LogBackOnlyPerformSample {

    public static void main(String[] args) {
        LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();
        Logger logger = lc.getLogger(LogBackOnlyPerformSample.class);
        
        long start = System.currentTimeMillis();
        
        int cnt = 1000;
        for (int i = 0; i < cnt; i++) {
            for (int j = 0; j < cnt; j++) {
                logger.debug("fujihara.");
            }
        }
        
        long end = System.currentTimeMillis();
        
        logger.debug(String.valueOf((end -start) / 1000));
    }

}
